package com.example.pathprotectsystem.mapper;

import com.example.pathprotectsystem.pojo.Point;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MapMapper {
    @Update("update path set stlng = #{st.lng},stlat=#{st.lat} where pathName = #{pathName}")
    void setstlnglat(Point st,String pathName);
    @Update("update path set edlng = #{ed.lng},edlat=#{ed.lat} where pathName = #{pathName}")
    void setedlnglat(Point ed,String pathName);
}
